<include file="application/walletyhbbadmin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">订单管理<b>></b><strong>合同信息</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3>合同信息</h3>
    <!-- <form action="{:U('Member/real_name_sub')}" method="post" enctype="multipart/form-data" id="myform" name="myform"> -->
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">

        






<if condition="(empty($sign_message))">
  <tr>
       <!-- <td align="right" valign="top">合同信息</td> -->
       <td align="center">
        暂无资料
       </td>
      </tr>
</if>

<if condition="(!empty($sign_message))">
  <if condition="($sign_message.type=='1')">
    
      

      <!-- <div>

      </div> -->


      <tr>
       <td align="right" valign="top">真实姓名</td>
       <td>
        {$relation.name}
       </td>
      </tr>
      
       <tr>
       <td align="right" valign="top">身份证正面</td>
       <td>
       <img  src="{$relation.z_card}" alt="" style="width: 300px; height:200px ">
       </td>
      </tr>


        <tr>
       <td align="right" valign="top">身份证反面</td>
       <td>
       <img src="{$relation.f_card}" alt="" style="width: 300px; height:200px ">
       </td>
      </tr>
      

      <tr>
       <td align="right" valign="top">交易合同内容：</td>
       <td>
        <!-- KindEditor -->
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
        <script>
          KindEditor.ready(function(K) {
            var editor1 = K.create('textarea[name="content"]', {
              cssPath : '__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css',
              uploadJson : '__PUBLIC__/app/admin/js/kindeditor/php/upload_json.php',
              fileManagerJson : '__PUBLIC__/app/admin/js/kindeditor/php/file_manager_json.php',
              allowFileManager : true,
              afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
              }
            });
            prettyPrint();
          });
      </script>
        <!-- /KindEditor -->
        <textarea id="content" name="content" style="width:780px;height:400px;" class="textArea" disabled>{$contract['value']}<br><img src="http://flcm.qianyiwangluo.com{$sign_message['sign_pic']}" alt="" style="width: 300px; height:200px " disabled></textarea>
       </td>
      </tr>
        
  </if>


  <if condition="($sign_message.type=='2')">





      <tr>
       <td align="right" valign="top">经办人真实姓名</td>
       <td>
        {$relation.name}
       </td>
      </tr>
      
       <tr>
       <td align="right" valign="top">经办人身份证正面</td>
       <td>
       <img  src="{$relation.operator_zcard}" alt="" style="width: 300px; height:200px ">
       </td>
      </tr>


        <tr>
       <td align="right" valign="top">经办人身份证反面</td>
       <td>
       <img  src="{$relation.operator_fcard}" alt="" style="width: 300px; height:200px ">
       </td>
      </tr>

        <tr>
       <td align="right" valign="top">营业执照</td>
       <td>
       <img src="{$relation.license_pic}" alt="" style="width: 300px; height:200px ">
       </td>
      </tr>
      

      <tr>
       <td align="right" valign="top">交易合同内容：</td>
       <td>
        <!-- KindEditor -->
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
        <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
        <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
        <script>
          KindEditor.ready(function(K) {
            var editor1 = K.create('textarea[name="content"]', {
              cssPath : '__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css',
              uploadJson : '__PUBLIC__/app/admin/js/kindeditor/php/upload_json.php',
              fileManagerJson : '__PUBLIC__/app/admin/js/kindeditor/php/file_manager_json.php',
              allowFileManager : true,
              afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                  self.sync();
                  K('form[name=example]')[0].submit();
                });
              }
            });
            prettyPrint();
          });
      </script>
        <!-- /KindEditor -->
        <textarea id="content" name="content" style="width:780px;height:400px;" class="textArea" disabled>{$contract['value']}<br><img src="http://flcm.qianyiwangluo.com{$sign_message['sign_pic']}" alt="" style="width: 300px; height:200px " disabled></textarea>
       </td>
      </tr>
  </if>
   <tr>
       <td></td>
       <td>
        <!--<input type="hidden" name="token" value="b9439ae8" />-->
         <input class="btn" type="submit" onclick='yes({$order.id},{$relation.member_id})' value="通过审核">
        <input class="btn" type="submit" onclick='no({$relation.member_id})' value="无法通过"></td>
      </td>
       </td>
      </tr>
</if> 



         
    
     
     </table>
    <!-- </form> -->
       </div>
 </div>
 <div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>

<script>
  //审核
    function yes(order_id,member_id){
    var url="{:U('Orders/yesexamine')}";
       $.post(url,{'order_id':order_id,'member_id':member_id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 // window.location.reload();
                  window.top.location.href='/walletyhbbadmin/Orders/index';
            }, 2000);
          }
       });
}

    function no(member_id){
    var url="{:U('Orders/noexamine')}";
       $.post(url,{'member_id':member_id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 window.location.reload();
            }, 2000);
          }
       });
}
</script>
</html>